<?php
/**
 * @category   Application_Extensions
 * @package    Talktangle Plugin 
 * @copyright  Idragon Co., Ltd.
 * @license
 */
class Talktangle_Widget_AdsPreviewController extends Engine_Content_Widget_Abstract {
	
	/**
	 * Redirect to other widget
	 */
	public function indexAction() {
	    if (!Engine_Api::_()->core()->hasSubject('user')) {
			return $this->setNoRender();
		}
		// Get subject
		$this->view->subject = $viewer = $subject = Engine_Api::_()->core()
			->getSubject('user');
		
		$request = Zend_Controller_Front::getInstance()->getRequest();
		$action = $request->getParam('type');
        
        if ($action != 'createcross') {
			return $this->setNoRender();
		}
        
        
	}
}